package com.zelix;

import java.util.*;

class rq {

    private ArrayList a;

    rq(oq oq1) {
        super();
        Enumeration enumeration;
        a = new ArrayList();
        enumeration = oq1.a();
        while (enumeration.hasMoreElements()) {
            HashSet hashset = new HashSet();
            hashset.add(enumeration.nextElement());
            a.add(hashset);
        }
    }

    boolean a(rq rq1) {
        ArrayList arraylist;
        int i;
        arraylist = rq1.a;
        for (i = 0; i < a.size(); i++) {
            HashSet hashset = (HashSet) a.get(i);
            HashSet hashset1 = (HashSet) arraylist.get(i);
            HashSet hashset2 = null;
            HashSet hashset3 = null;
            HashSet hashset4 = null;
            HashSet hashset5 = null;
            if (i > 0) {
                hashset2 = (HashSet) a.get(i - 1);
                hashset3 = (HashSet) arraylist.get(i - 1);
            }
            if (i < a.size() - 1) {
                hashset4 = (HashSet) a.get(i + 1);
                hashset5 = (HashSet) arraylist.get(i + 1);
            }
            if (!hashset.equals(hashset1) && (hashset2 != null && !hashset2.equals(hashset3) || hashset4 != null && (!hashset4.equals(hashset5))))
                return false;
        }
        return true;
    }

    Enumeration a() {
        return Collections.enumeration(a);
    }

    int b() {
        return a.size();
    }

    void b(rq rq1) {
        int i;
        for (i = 0; i < a.size(); i++) {
            HashSet hashset = (HashSet) a.get(i);
            hashset.addAll((HashSet) rq1.a.get(i));
        }
    }
}